package com.click369.crm.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {

	/**
	 * 通用页面跳转Controller
	 * @return
	 */
	//http://localhost:9090/index.do --> WEB-INF/jsp/index.jsp
	//http://localhost:9090/html_index.do --> WEB-INF/jsp/html/index.jsp
	@RequestMapping("{page}")
	public String page(@PathVariable("page") String page){
		page = page.replace("_","/");
		return page;
	}
	
}
